package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 张永远
 * @since 2020-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_shop")
public class ShopDo extends Model<ShopDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long marketId;

    /**
     * 店铺名称
     */
    @TableField("shop_name")
    private String shopName;

    /**
     * 所属平台(来自码表;平台)
     */
    @TableField("platform_id")
    private Long platformId;

    /**
     * 店铺联系人
     */
    @TableField("shop_contact_name")
    private String shopContactName;

    /**
     * 店铺联系人电话
     */
    @TableField("shop_contact_tel")
    private String shopContactTel;

    /**
     * 店铺联系人邮箱
     */
    @TableField("shop_contact_email")
    private String shopContactEmail;

    @TableField("company_id")
    private Long companyId;

    @TableField("secret")
    private String secret;

    @TableField("secret_version")
    private Integer secretVersion;

    @TableField("rakuten_secret")
    private String rakutenSecret;

    @TableField("rakuten_license")
    private String rakutenLicense;

    @TableField("amazon_seller_id")
    private String amazonSellerId;

    @TableField("amazon_token")
    private String amazonToken;

    @TableField("tiktok_access_token")
    private String tiktokAccessToken;

    @TableField("tiktok_refresh_token")
    private String tiktokRefreshToken;

    @TableField("shop_cipher")
    private String shopCipher;

    @TableField("amz_sp_lwa")
    private String amzSpLwa;

    @TableField("qooten_id")
    private String qootenId;

    @TableField("qooten_pwd")
    private String qootenPwd;

    @TableField("qooten_key")
    private String qootenKey;

    @TableField("shopify_token")
    private String shopifyToken;

    @TableField("shopify_secret")
    private String shopifySecret;

    @TableField("shopify_key")
    private String shopifyKey;

    @TableField("shopify_host")
    private String shopifyHost;

    @TableField("qianyi_access_id")
    private String qainyiAccessId;

    @TableField("qianyi_secret_key")
    private String qianyiSecretKey;

    @TableField("qianyi_shop_name")
    private String qianyiShopName;

    @TableField("yahoo_seller_id")
    private String yahooSellerId;

    @TableField(value = "yahoo_refresh_token")
    private String yahooRefreshToken;

    @TableField("atuo_confirm_order_island_flag")
    private Boolean autoConfirmOrderIslandFlag;

    @TableField("atuo_confirm_order_flag")
    private Boolean autoConfirmOrderFlag;

    @TableField("atuo_send_out_flag")
    private Boolean autoSendOutFlag;

    @TableField("key_status")
    private Integer keyStatus;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_by")
    private Long updateBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_by")
    private Long deleteBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField(value = "expiration_time", updateStrategy = FieldStrategy.IGNORED)
    private Date expirationTime;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
